struct ListNode* middleNode(struct ListNode* head){
    //经典快慢指针
    struct ListNode* fast = head,*slow = head;
    while(fast&&fast->next)
    {
        slow = slow->next;
        fast = fast->next->next;
    }
    return slow;
}